Introduction
H5 Integration
H5 integration enables businesses to integrate Telebirr's payment gateway into their mobile applications using HTML5 technology. This integration option is ideal for businesses that want to provide their customers with a seamless payment experience within their mobile apps.
User experience
Service Flow
App H5 Payment refers that H5 page integrates with the consumer APP. The consumer needs to open the H5 page and complete payment in SuperApp
Quick Steps:
- Open the merchant H5 Page (clicking the embedded page button) in SuperApp
- Confirm the order and jump to the payment page in SuperApp
- Input PIN in SuperApp
- Payment success and the system will notify the result to merchant H5 page
Work Flow
Main interaction
- The user clicks the merchant H5 menu in the SuperApp, and the SuperApp loads the merchant H5 page and displays.
- The user completes the order on the merchant H5 page and confirms the payment.
- After receiving the order request, the merchant server applies for a fabric token and invokes the SuperApp (SuperApp payment server) unified order interface (order creation) to create a prepaid order.
- The payment server Return prepaid order info (prepay_id) to merchant server
- The merchant server groups and joins the payment parameters (prepay id, merch order id, sign, order info, etc.) to construct rawRequest.
- The merchant server returns the rawRequest to the merchant H5.
- Merchant H5 page calls SuperApp payment JS script to pull up checkout counter and directly transmit the payment parameters that are sent by the merchant server.
- The user confirms the order and enters a password to authorize payment.
- SuperApp payment server Verifying authorization and completing order payment
- If the payment is successful, the SuperApp server asynchronously notifies the Merchant Server payment result.
- The user completes the payment or cancels the payment at the SuperApp checkout counter and returns to the merchant H5 page (the default is to return the payment initiation page). The Merchant Server determines whether the payment result notification from MobilePayment is received. If not, the Merchant Server calls the SuperApp order inquiry interface (queryorder) to confirm the order status.
- The merchant ships and displays the final order payment result to the user.